﻿using YunZuan.Models.Attributes;
using YunZuan.Models.Entities;


namespace YunZuan.Models
{
    [Table(TableName = "yz_supplier_role", PrimaryKey = "ID")]
    public class SupplierRole : BaseEntity
    {
        #region Model

        private int? _id;
        /// <summary>
        ///
        /// </summary>
        [Column(IsAutoIncrement = true)]
        public int? ID
        {
            get { return _id; }
            set { this.ChangeNotify<int?>("ID", value, ref _id); }
        }
        private string _rolename;
        /// <summary>
        ///角色名
        /// </summary>
        public string RoleName
        {
            get { return _rolename; }
            set { this.ChangeNotify<string>("RoleName", value, ref _rolename); }
        }
        private string _roleDesc;
        /// <summary>
        ///角色名
        /// </summary>
        public string RoleDesc
        {
            get { return _roleDesc; }
            set { this.ChangeNotify<string>("RoleDesc", value, ref _roleDesc); }
        }
        private int _goodstype;
        /// <summary>
        ///商品类别 可以参考表:yz_goods_type
        /// </summary>
        public int GoodsType
        {
            get { return _goodstype; }
            set { this.ChangeNotify<int>("GoodsType", value, ref _goodstype); }
        }
        #endregion
    }
}
